package com.ruoyi.common.utils;

import java.util.HashMap;
import java.util.Map;

public class R {

    public static Map<String,Object> fail(String msg){
        Map<String,Object> map = new HashMap<String,Object>();
        map.put("msg", msg);
        map.put("code", 2);
        return map;
    }

    public static Map<String,Object> success(){
        Map<String,Object> map = new HashMap<String,Object>();
        map.put("code", 0);
        return map;
    }

    public static Map<String,Object> offline(){
        Map<String,Object> map = new HashMap<String,Object>();
        map.put("code", 1);
        return map;
    }
}
